
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text(
          'Hello World',
          textDirection: TextDirection.ltr,
        ),
        backgroundColor: Colors.amber,
      ),
      body: const MyApp(),
    ),
  ));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text(
        '无状态的组件',
        style: TextStyle(
            fontSize: 30,
            color: Colors.tealAccent,
            backgroundColor: Colors.blue),
      ),
    );
  }
}
